package com.dorje.sys.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.dorje.sys.dao.BaseDao;
import com.dorje.sys.service.BaseService;

public class BaseServiceImpl<T>  implements BaseService<T> {
	
	@Autowired
	protected BaseDao<T> baseDao;
	
	@Override
	public int insert(T t) {		
		return baseDao.insert(t);
	}
	
	@Override
	public int update(T t) {
		return baseDao.update(t);
	}
	
	@Override
	public T findInfoById(Integer id) {
		
		return baseDao.findInfoById(id);
	}

	@Override
	public List<T> findAll(T t) {
		return baseDao.findAll(t);
	}

	

}
